package com.lyeducation.repository;

import com.lyeducation.entities.order.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @InterfaceName OrderDetailRepository
 * @Description
 * @Author Sky1in3
 * @Date 2019/1/15 0:51
 * @Version 1.0
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {
    List<OrderDetail> findByOrderId(String orderId);

    boolean existsByCourseIdAndOrderId(String courseId, String orderId);
}
